import { get, post } from '/@/api/request.ts';

export enum Api {
    depart = '/health-watch/watch/watchDevice/getUnitList',
    getWatchDataByOrgCode = '/health-watch/watch/watchData/getWatchDataByOrgCode',
    getMonitorList = '/health-watch/watch/watchMonitorData/getMonitorList',
    sleepApi = '/health-watch/watch/watchData/getSleep',
    stepApi = '/health-watch/watch/watchData/getSdc',
    listCustom = 'health-watch/watch/watchMonitorData/listCustom',
}

// 单位-
export const allSecondaryDeparts = () => get(Api.depart);

//左側
export const getWatchDataByOrgCode = (params) => post(Api.getWatchDataByOrgCode, params);

//右-健康终端报警
export const getMonitorList = (params: any) => get(Api.getMonitorList, params);
// 右-睡眠
export const getSleep = (params: any) => post(Api.sleepApi, params);
// 右-步数
export const getStep = (params: any) => post(Api.stepApi, params);

//副屏-预警
export const getCustom = (params: any) => get(Api.listCustom, params);
